{include file="header.tpl" title="Chi tiet Report Online"}
<form action="" method="post" target="_self" name="tongquat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td colspan="3" align="right" nowrap="nowrap">
<select name="hanhdong" size="1" onChange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
    <td>{$lbl_rptid}</td>
    <td colspan="3"><span style="color:#FF0000">
	<select name="RPTIDtmp" size="1" {if $activefield eq 'enabled' }disabled="disabled" {/if} onchange="document.getElementById('RPTID').value=this.value;">
	  <option value="">&nbsp;</option>
	{foreach from=$rptid key=k item=v}
      <option value="{$k}" {if $RPTID eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 	{/foreach}
	</select><input type="hidden" id="RPTID" name="RPTID" value="{$RPTID}"/>
    * </span>  </td>
  </tr>
  <tr>
    <td>{$lbl_seqno}</td>
    <td colspan="3">
	<select name="SEQNO" size="1">
		{foreach from=$seqno key=k item=v}
      		<option value="{$k}" {if $SEQNO eq $k} selected="selected" {/if}>{$v}</option>
 		{/foreach}	
	</select>   </td>	
  </tr>
	<tr>
    <td nowrap="nowrap">{$lbl_colcode}</td>
    <td colspan="3"><span style="color:#FF0000">
		<input type="text" name="COLCODE" maxlength="10" size="20" value="{$COLCODE}" {if $activefield eq 'enabled' } readonly="readOnly" {/if}/>	* </span> <input id="replacement_find" type="submit" name="find" value="    "  height="15"/>  </td>
    </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_vndesc}</td>
    <td colspan="3"><input name="VNDESC" type="text" value="{$VNDESC}" size="50" maxlength="50"/></td>	 
    </tr>  
	<tr>
		<td nowrap="nowrap">
			{$lbl_endesc}</td>
		<td colspan="3">
			<input name="ENDESC" type="text" value="{$ENDESC}" size="50" maxlength="50"/>		</td>	
	</tr>
	<tr>
		<td nowrap="nowrap">
			{$lbl_enbl}</td>
		<td colspan="3"><select name="ENBL" size="1">		  
		{foreach from=$enbl_rptcldef key=k item=v}      		
		  <option value="{$k}" {if $enbl eq $k} selected="selected" {/if}>{$v}</option>		  
 		{/foreach}			
		  </select>		</td>	
	</tr>
	<tr>
		<td nowrap="nowrap">
			{$lbl_coltype}		</td>
		<td colspan="3">
		<select id="COLTYPE" name="COLTYPE" size="1" onchange="type_change();">
			{foreach from=$ctrl_type key=k item=v}
     			 <option value="{$k}" {if $COLTYPE eq $k} selected="selected" {/if}>{$v}</option>
 			{/foreach}
		</select>		</td>	
	</tr>
	<tr>
		<td nowrap="nowrap">
			{$lbl_sqlstr}		</td>
		<td colspan="3">
			<input type="text" id="SQLSTR" name="SQLSTR" maxlength="200" size="50" value="{$SQLSTR}"/>		</td>	
	</tr>
    </tr>
  <tr>
<td colspan="4"><p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
<tr>
<td colspan="4" align="right" nowrap="nowrap">
    <input type="button" name="cancle" id="cancle" value="{$ten_cancle}" class="button_style" onclick="activeform(this.form,'RPTID');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
    <input type="submit" name="capnhat" value="{$ten_cap_nhat}" {if $activefield eq 'disabled' }disabled="disabled" {/if} class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" /></td>
  </tr>
<tr>
<td colspan="4" align="left" nowrap="nowrap">
<input name="addnew" type="submit" value="{$ten_themmoi}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
<input name="detail" type="submit" value="{$ten_chitiet}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td>
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td colspan="3" align="right" nowrap="nowrap">
<select name="hanhdong1" size="1" onChange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
